package com.rsk.dao;


import java.io.Serializable;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.rsk.entity.SysUserLevel;


@Repository
public interface SysUserLevelRepository extends JpaRepository<SysUserLevel, Long>,JpaSpecificationExecutor<SysUserLevel>,Serializable {
	
	@Modifying
	@Query(value = "update sys_user_level set is_del = 1, operator_user =?2, operator_time = NOW() where id =?1", nativeQuery = true)
	public int delSysUserLevel(Long id, Long operatorUser);
	
}
 